You have requested this page via {{method}} method.

{%if method == 'GET'%}
<form action="/template" method="POST" name="form">
    <a href="javascript: document.form.submit();">POST request</a>
</form>
{%else%}
<br>
<a href="/template">GET request</a>
{%endif%}
<br><br><small><a href="/">self.response.write example</a></small>
